ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  Tan( )

Tan(Number)

The Tan function returns the tangent for a number (angle).

Code:
<% =Tan(45.0) %>

Output:
1.61977519054386

You can also use a negative number (angle).

Code:
<% =Tan(-45.0) %>

Output:
-1.61977519054386